package org.circedroid.core;


import java.util.HashMap;
import java.util.Vector;

import android.content.Context;


public class GR1D extends GRiD{
	private int reg;
	private HashMap<Integer, Integer> listREA;
	
	public GR1D(String nomfichier, Context context, int reg){
		super(nomfichier, context);
		this.reg=reg;
		this.listREA=new HashMap<Integer, Integer>();
	}
	public void addREA(int rea){
		this.listREA.put((this.listREA.size()+1), rea);
	}
	public int getREG(){return this.reg;}
	public HashMap<Integer, Integer> getListREA(){return this.listREA;}
	
	public Double getValue(Double lonn, Double latt) {
		Vector<Double> ret = super.getValueGRiD(lonn, latt);
		if (ret==null)
			return null;
		return ret.get(0);
		
	}
}

